package com.ctshk.rpc.order.goods.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * 购物车
 * </p>
 *
 * @author 姜斌文
 * @since 2021-04-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_shopping_cart")
@ApiModel(value="ShoppingCart对象", description="购物车")
public class ShoppingCart extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "类型:1：门店; 2：小店; 3：商城")
    private Integer type;

    @ApiModelProperty(value = "来源id，存储与type对应业务id; （门店id，商城id，小店）")
    private Long sourceId;

    @ApiModelProperty(value = "来源名称")
    private String sourceName;

    @ApiModelProperty(value = "商品id")
    private Long commodityId;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "商品图片url")
    private String commodityPictureUrl;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal commodityPrice;

    @ApiModelProperty(value = "划线价")
    private BigDecimal markingPrice;

    @ApiModelProperty(value = "商品编码")
    private String commodityNumber;

    @ApiModelProperty(value = "数量")
    private Integer number;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "成本属性表id")
    private Long commodityCostAttributeId;

    @ApiModelProperty(value = "(规格)成本属性表组合名称:组合：规格名称1+属性值1+规格名称2+属性值2")
    private String commodityCostAttributeName;

    @ApiModelProperty(value = "商品状态:1：有效; 2：已失效")
    private Integer commodityStatus;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;

    @ApiModelProperty(value = "平台用户类型 1、中旅后台用户  2、中旅H5/PC端用户")
    private Integer platformCode;

}
